package com.bigger.arch.app.service;

import com.bigger.arch.app.biz.IDemoBiz;
import com.bigger.arch.app.biz.impl.Demo2BizImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.bigger.arch.app"})
public class BiggerAppServiceApplication {

    @Bean("domo2Biz")
    public IDemoBiz demoBiz(){
        return new Demo2BizImpl();
    }

    public static void main(String[] args) {
        SpringApplication.run(BiggerAppServiceApplication.class, args);
    }

}

